package com.upcode.weighing.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * APP消息推送表
 * </p>
 *
 * @author ZYW
 * @since 2018-05-03
 */
@TableName("msg_push_rec")
public class MsgPushRec implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@JsonSerialize(using= ToStringSerializer.class)
	@TableId("id")
	private Long id;
    /**
     * 用户主键
     */
	@JsonSerialize(using= ToStringSerializer.class)
	private Long uid;
    /**
     * 手机号码
     */
	private String phone;
    /**
     * 消息模板
     */
	@TableField("msg_template")
	private String msgTemplate;
    /**
     * 消息参数
     */
	@TableField("msg_param")
	private String msgParam;
    /**
     * 消息类型. 0-系统通知  1-驶入通知 2-驶出通知 3-结算通知 4-下线通知  5-注册验证码  6-登录验证码
     */
	@TableField("msg_type")
	private Integer msgType;
    /**
     * 消息推送结果.   0-成功  1-失败
     */
	@TableField("push_status")
	private Integer pushStatus;
    /**
     * 消息介质。 1-APP通知  2-SMS短信
     */
	@TableField("msg_media")
	private String msgMedia;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 状态，1 未删除，0 禁用，-1 删除
     */
	private Integer status;
    /**
     * 客户id
     */
	@TableField("client_id")
	private Long clientId;

    /**
     * 消息类型名称
     */
	@TableField(exist = false)
	private String msgTypeNmae;
	
	@TableField("msg_content")
	private String msgContent;

    public String getMsgTypeNmae() {
        return msgTypeNmae;
    }

    public void setMsgTypeNmae(String msgTypeNmae) {
        this.msgTypeNmae = msgTypeNmae;
    }

    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMsgTemplate() {
		return msgTemplate;
	}

	public void setMsgTemplate(String msgTemplate) {
		this.msgTemplate = msgTemplate;
	}

	public String getMsgParam() {
		return msgParam;
	}

	public void setMsgParam(String msgParam) {
		this.msgParam = msgParam;
	}

	public Integer getMsgType() {
		return msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	public Integer getPushStatus() {
		return pushStatus;
	}

	public void setPushStatus(Integer pushStatus) {
		this.pushStatus = pushStatus;
	}

	public String getMsgMedia() {
		return msgMedia;
	}

	public void setMsgMedia(String msgMedia) {
		this.msgMedia = msgMedia;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getClientId() {
		return clientId;
	}

	public void setClientId(Long clientId) {
		this.clientId = clientId;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	@Override
	public String toString() {
		return "MsgPushRec{" +
			", id=" + id +
			", uid=" + uid +
			", phone=" + phone +
			", msgTemplate=" + msgTemplate +
			", msgParam=" + msgParam +
			", msgType=" + msgType +
			", pushStatus=" + pushStatus +
			", msgMedia=" + msgMedia +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", status=" + status +
			", clientId=" + clientId +
			"}";
	}
}
